package com.tanker.web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * 
 * @ClassName Application
 * @Description TODO(主程序启动)
 * @author fryu
 * @Date 2017年6月3日 上午8:37:51
 * @version 1.0.0
 */
@Controller
@EnableWebMvc
@SpringBootApplication
@ComponentScan(basePackages={"com.tanker.order","com.tanker.web"})
@MapperScan(basePackages = {"com.tanker.web.dao","com.tanker.order.dao"})
public class Application extends WebMvcConfigurerAdapter {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
